<?php

import('Configuration.Array');

class User {

	public $email;
	public $pwd;

	/**
	 * Constructor
	 */
	function __construct($config){
		foreach($config as $key => $val){
			$this->$key = $val;
		}


	}

	public function verifConncetion(){
		$config = new Hoa_Configuration_Array(require 'config.php');
		if ($this->email == $config->admin->email && $this->pwd == $config->admin->pwd)
			return 1;
	}

}

?>